package com.springbootmybatis.service;

import com.springbootmybatis.entity.DailyPlan;
import com.springbootmybatis.entity.DailyPlanDetail;

import java.util.List;

public interface DailyPlanService {

    void addDailyPlan(DailyPlan dailyPlan);

    void updateDailyPlan(DailyPlan dailyPlan);

    DailyPlan getDailyPlanById(Long id);

    List<DailyPlan> getDailyPlanList(Long current, Long size);

    void deleteDailyPlanById(Long id);

    void updateDailyPlanDetail(DailyPlanDetail dailyPlanDetail);

    void deleteDailyPlanDetailById(Long id);

    void addDailyPlanDetail(List<DailyPlanDetail> list);

    List<DailyPlanDetail> getDailyPlanDetailByDailyPlanId(Long dailyPlanId);
}
